<?php
/**
 * Created by PhpStorm.
 * User: spatra
 * Date: 14-10-3
 * Time: 下午5:15
 */

class UsersTableTestSeeder extends Seeder{
	public function run(){
		DB::table('users')->insert(
            ['username'=>'spatra', 'email'=>'spatra@qq.com', 'password'=>Hash::make('spatra'), 'head_image'=>'1.jpg', 'role_id'=>'1', 'created_at'=>date('Y-m-d'), 'updated_at'=>date('Y-m-d')]
		);

        DB::table('users')->insert(
            ['username'=>'teacher', 'email'=>'teacher@example.com', 'password'=>Hash::make('teacher'), 'head_image'=>'2.jpg', 'role_id'=>'2', 'created_at'=>date('Y-m-d'), 'updated_at'=>date('Y-m-d')]
        );

        DB::table('users')->insert(
          ['username'=>'student', 'email'=>'student@example.com', 'password'=>Hash::make('student'), 'head_image'=>'3.jpg', 'role_id'=>'1', 'created_at'=>date('Y-m-d'), 'updated_at'=>date('Y-m-d')]
        );
	}
}